package io.github.tangwan.thread;

import java.util.Arrays;
import java.util.List;

/**
 * @author tangwan
 * @version V1.0
 * created on 2021/10/8 11:37
 * @since JDK 1.8
 */
public class MyLambda {

    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1,2,3,4,5,6);
        list.parallelStream().forEach(System.out :: println);
        System.out.println("------------------");
        list.stream().forEach(System.out :: println);
    }

}
